const puppeteer = require('puppeteer')
const changeDate = async () => {
  const browser = await puppeteer.launch({
    headless: false,
    defaultViewport: null,
    args: ['--start-maximized'],
    ignoreDefaultArgs: ['--enable-automation']
  })
  const page = await browser.newPage()
  await page.goto('https://www.ctrip.com/', {
    waitUntil: 'networkidle2'
  })
  await page.evaluate(()=> {
    document.getElementById('HD_CheckIn').value = '2022-02-22'
  })
}
changeDate()
